﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace Emico.Linq.Criterion
{
    public interface ICriteria<T> : ISerializable
        where T : class
    {
        int FirstResult { get; set; }
        int? MaxResults { get; set; }
        IExpression<T> Filter { get; }
        IList<IOrderBy<T>> Orders { get; }
        IDictionary<string, object> Parameters { get; }
    }
}
